<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>layui</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="__static/lib/layui-v2.5.5/css/layui.css" media="all">
	<link rel="stylesheet" href="__static/css/public.css" media="all">
	<style>
		.layui-form-pane .layui-form-label {
			width: 90px;
		}
	</style>
</head>
<body>
<div class="layuimini-container">
	<div class="layuimini-main">
        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
        <script type="text/html" id="acc_type">
            <span  style="color: #ffb800;font-weight: bold;{{d.type == null?'':'display:none;'}}">账户转账</span>
            <span  style="color: #03A9F4;font-weight: bold;{{d.type == 1?'':'display:none;'}}">客户打款</span>
            <span  style="color: #4CAF50;font-weight: bold;{{d.type == 2?'':'display:none;'}}">账户充值</span>
            <span  style="color: red;font-weight: bold;{{d.type == 3?'':'display:none;'}}">客户退款</span>
            <span  style="color: red;font-weight: bold;{{d.type == 4?'':'display:none;'}}">账户退款</span>
        </script>
        <script type="text/html" id="acc_status">
            <span onmouseover=get_msg(this) data-msg="{{d.reject}}"  style="color:  red;font-weight: bold;{{d.status == -1?'':'display:none;'}}">驳回</span>
            <span  style="color:  #03A9F4;font-weight: bold;{{d.status == 0?'':'display:none;'}}">审核中</span>
            <span  style="color: #4CAF50;font-weight: bold;{{d.status == 1?'':'display:none;'}}">完成</span>
        </script>
	</div>
</div>
<script src="__static/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="__static/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script src="__static/js/man.js" charset="utf-8"></script>
<script>
    function get_msg(obj){
        var str = $(obj).attr('data-msg');
        layer.tips(str,$(obj));
    }
    var id = {$Request.get.id};
	var $,form,table,laydate,tableSelect,miniTab;
	layui.use(['form', 'table', 'tableSelect', 'laydate', 'miniTab'], function () {
		$ = layui.jquery
			, form = layui.form
			, table = layui.table
			, laydate = layui.laydate
            , tableSelect = layui.tableSelect
            , miniTab = layui.miniTab
			;
		pageLoading();
		table.render({
			elem: '#currentTableId',
			id:'testReload',
			height: 'full-60',
            url: '{:url("cu_fund_inmfo")}?t=json',
            where: {id:id},
			method : 'post',
			toolbar: '#toolbarDemo',
			loading:false,
			cols: [[
                { field: 'type', title: '类型' ,templet:'#acc_type'},
				{ field: 'status', title: '状态' ,templet:'#acc_status'},
				{ field: 'rebate', title: '返点(%)' },
				{ field: 'currency', title: '账户币' },
				{ field: 'amount', title: '金额(元)'},
                { field: 'name_id', title: '账户ID' },
                { field: 'out_account', title: '账户转出ID' },
                { field: 'in_account', title: '账户转入ID' },
				{ field: 'create_time', title: '日期' },
				{ field: 'note', title: '备注'},
			]],
			// limit: 30,
			// page: true,
			done: function () {
                // 添加分页加载动画的函数    
                $('.layui-laypage > a').each(function(){
                    $(this).attr('onclick',"pageLoading(this)");
                })
                layer.close(loadingIndex);
            }
		});

		
		

		

	});
	
</script>

</body>
</html>